package datastructre;

import java.util.Scanner;

public class draft {
    public static void main(String[] args) {
        int x = 3,key = -14;
        System.out.println( ((x+key)%10+10)%10 );
    }
}
